package com.ld.security.auth.sdk.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
@RequestMapping("/user")
public class LoginController {


    @GetMapping("getUserInfo")
    public Object getUserInfo(Principal principal){
        return principal;
    }

    @GetMapping("current")
    public Object current(Principal principal){
        return principal;
    }

}
